#include "RunMan.h"

RunMan::RunMan()
	:GameObject()
{

}

RunMan::RunMan(int id, float posX, float posY, int width, int height)
	:GameObject(id,posX, posY,width,height)
{	
	init();
}

RunMan::~RunMan()
{

}

void RunMan::init()
{
	m_sprite = ResourceManager::getInstance()->cS_runman;
}

void RunMan::update(float time)
{
	updateVec(time);
	moveEnity();
	setAnimation();
	setRectCollsion();	
}

void RunMan::setAnimation()
{

}

void RunMan::setRectCollsion()
{

}

void RunMan::draw()
{
	m_sprite->update();
	D3DXVECTOR2 pos = m_camera->getPointTransform(m_posX, m_posY);
	m_sprite->draw(m_spriteHandler, pos.x, pos.y, false);
}

void RunMan::destroy()
{

}
